//
//  XS_DownloadListCell.swift
//  XueDao
//
//  Created by Mac on 2020/12/15.
//

import UIKit

class XS_DownloadListCell: UITableViewCell {

    @IBOutlet weak var imgView: UIImageView!
    @IBOutlet weak var titleLabel: UILabel!
    @IBOutlet weak var progressLabel: UILabel!
    @IBOutlet weak var contentLabel: UILabel!
    
    var _model : XS_DownloadModel!
    public var model : XS_DownloadModel!{
        set{
            _model = newValue
            //设置数据
            imgView.sd_setImage(with: URL.init(string: newValue.curriculumModel.curriculumImgUrl), completed: nil)
            titleLabel.text = newValue.curriculumModel.curriculumName
        }
        get{
            return _model
        }
    }
    
    
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    
}
